//// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
//package com.linqingying.gitcode.pullrequest.data.provider
//
//import com.intellij.openapi.Disposable
//import com.linqingying.gitcode.api.data.pullrequest.timeline.GCPRTimelineItem
//import com.linqingying.gitcode.pullrequest.data.GCListLoader
//import com.linqingying.gitcode.pullrequest.data.GCPRIdentifier
//import com.linqingying.gitcode.util.DisposalCountingHolder
//
//internal class GCPRDataProviderImpl(override val id: GCPRIdentifier,
//                                    override val detailsData: GCPRDetailsDataProvider,
//                                    override val stateData: GCPRStateDataProvider,
//                                    override val changesData: GCPRChangesDataProvider,
//                                    override val commentsData: GCPRCommentsDataProvider,
//                                    override val reviewData: GCPRReviewDataProvider,
//                                    override val viewedStateData: GCPRViewedStateDataProvider,
//                                    private val timelineLoaderHolder: DisposalCountingHolder<GCListLoader<GCPRTimelineItem>>)
//  : GCPRDataProvider {
//
//  override val timelineLoader get() = timelineLoaderHolder.value
//
//  override fun acquireTimelineLoader(disposable: Disposable) =
//    timelineLoaderHolder.acquireValue(disposable)
//}
